let timer
 
/**
*防抖
*/
 
export function debounce(fn,delay){
    clearTimeout(timer)
    timer = setTimeout(()=>{
        fn();
    },delay);
}